package com.tonann.app.mqtt.mulitipleServer;

import org.apache.commons.collections4.map.HashedMap;

import java.util.Map;

public class MQTTMsg {

    private static MQTTMsg MQTTMsg;

    public static Map<String, String> map;

    public static MQTTMsg getInstance() {
        if (MQTTMsg == null) {
            synchronized (MQTTMsg.class) {
                if (MQTTMsg == null) {
                    MQTTMsg = new MQTTMsg();
                    map = new HashedMap<>();
                }
            }
        }
        return MQTTMsg;
    }
}
